package com.cyou.annals.config;

import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.Properties;

/**
 * @Title: AnnalsConfig.java
 * @Description: 编年史客户端可配置参数
 * @Company : cyou
 * @author cuishijie
 * @date 2012-12-06 下午4:53:30
 * @version V1.0
 */
public class AnnalsConfig {
	private static Properties props = new Properties();
	static {
		try {
			props.load(Thread.currentThread().getContextClassLoader()
					.getResourceAsStream("annals.properties"));
		} catch (FileNotFoundException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		}
	}

	public static String getValue(String key) {
		return props.getProperty(key).trim();
	}

	public static void updateProperties(String key, String value) {
		props.setProperty(key, value);
	}

	  
}
